package com.caregiver.watch.business.care.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @Description: 用户轨迹
 * @Author 疆戟
 * @Date 2025/9/27 18:17
 * @Version 1.0
 */
@Data
@Schema(description = "用户轨迹")
public class TraceVo {

    @Schema(description = "轨迹点(按时间先后顺序排序,第一个是起点最后一个是终点)")
    private List<LocationDataVo> locationDataVos;


    public static TraceVo build(List<LocationDataVo> locationDataVos) {
        TraceVo traceVo = new TraceVo();
        traceVo.locationDataVos = locationDataVos;
        return traceVo;
    }
}
